#include <time.h>
#include <winsock2.h>
#include "MySQL/mysql.h"
#include "pThreads/semaphore.h"
#include <vector>
#include "CSemaphore.h"

#include "CZoneHandler.h"
#include "CSpawnPointHandler.h"
#include "CLuaManager.h"
#include "CUtil.h"


#include "CPacket.h"
#include "CDb.h"
#include "CConsole.h"
#include "CSpawnPointGroup.h"
#include "CSpawnMobPool.h"
#include "CVanaTime.h"
#include <algorithm>





CSpawnMobPool::CSpawnMobPool() {
}

CSpawnMobPool::~CSpawnMobPool() {
}


bool CSpawnMobPool::isSpawnConditionMet() {

	switch(this->m_flags) {

		case SPAWNCONDITION_NORMAL:
			return true;
			break;
		case SPAWNCONDITION_ATNIGHT1:
			if(CVanaTime::getInstance()->isUndeadTime())
				return true;
			break;
		case SPAWNCONDITION_ATNIGHT2:
			if(CVanaTime::getInstance()->isBatTime())
				return true;
			break;
		case SPAWNCONDITION_WEATHER:

			break;
		case SPAWNCONDITION_FOG:

			break;
		case SPAWNCONDITION_MOONPHASE:

			break;
		case SPAWNCONDITION_LOTTERY:

			break;
		case SPAWNCONDITION_WINDOWED:

			break;
		case SPAWNCONDITION_SCRIPTED:

			break;
	}

	return false;

}
